//
//  Config.h
//  奇阅
//
//  Created by 奇阅科技 on 14-10-15.
//  Copyright (c) 2014年 奇阅科技. All rights reserved.
//

#ifndef ___Config_h
#define ___Config_h

#import "AppDelegate.h"
#import "MBProgressHUD.h"
#import "UIViewControllerAdditions.h"
#import "UINavigationController+SGProgress.h"
#import "AdtHelper.h"
#import "ZMYNetWorkAPI.h"
#import "ZMYLKDB.h"
#import "UIImageView+WebCache.h"
#import "MobClick.h"
#define IOS7 ([[[UIDevice currentDevice]systemVersion] floatValue] >= 7.0 ? YES : NO)
#define RGB_COLOR(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]

#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define APP_HEIGHT [UIScreen mainScreen].applicationFrame.size.height
#define APP_WIDTH [UIScreen mainScreen].applicationFrame.size.width
#define YellowColor RGB_COLOR(255, 114, 0)

#define CGRectOrigin(v)    v.frame.origin
#define CGRectSize(v)      v.frame.size
#define CGRectX(v)         CGRectOrigin(v).x
#define CGRectY(v)         CGRectOrigin(v).y
#define CGRectW(v)         CGRectSize(v).width
#define CGRectH(v)         CGRectSize(v).height

#if __LP64__ || (TARGET_OS_EMBEDDED && !TARGET_OS_IPHONE) || TARGET_OS_WIN32 || NS_BUILD_32_LIKE_64
typedef long NSInteger;
typedef unsigned long NSUInteger;
#else
typedef int NSInteger;
typedef unsigned int NSUInteger;
#endif


#endif
